﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIS.SDK.Model
{
    public class EntityData
    {

        /// <summary>
        /// 
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Data data { get; set; }

        // <summary>
        /// 
        /// </summary>
        public List<string> errors { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> warnings { get; set; }

    }

    public class Data
    {
        /// <summary>
        /// 
        /// </summary>
        public GridData gridData { get; set; }
    }

    public class GridData
    {
        /// <summary>
        /// 
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> titles { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Dictionary<string, ColumnInfo> columnInfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<RowsetItem> rowset { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Summary summary { get; set; }
    }

    public class Summary
    {
        /// <summary>
        /// 
        /// </summary>
        public int records { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string moreRecords { get; set; }
    }
    public class ColumnInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int dataType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string visible { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bsvw { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string longName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string qbeEnabled { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int dispDec { get; set; }
    }
    public class RowsetItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int rowIndex { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string MOExist { get; set; }
        /// <summary>
        /// 
        /// </summary>
 
    }


}
